Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Unnecessary Non-Terminal Key checks #248

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

blockgroot
Copy link
Contributor

No description provided.

@blockgroot blockgroot self-assigned this Sep 11, 2024
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 95.45455% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.78%. Comparing base (781525e) to head (fabfd94).

Files with missing lines Patch % Lines
contracts/OperatorRewardsCollector.sol 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
+ Coverage   92.23%   92.78%   +0.54%     
==========================================
  Files          42       45       +3     
  Lines        2564     3255     +691     
  Branches      298      300       +2     
==========================================
+ Hits         2365     3020     +655     
- Misses        195      230      +35     
- Partials        4        5       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@blockgroot blockgroot marked this pull request as ready for review November 25, 2024 10:44
@blockgroot blockgroot force-pushed the feat/remove-NT-key-checks branch 4 times, most recently from 0f7fc7d to 675199a Compare November 28, 2024 02:29
@blockgroot blockgroot force-pushed the feat/remove-NT-key-checks branch from 675199a to 896ae0c Compare November 28, 2024 02:37
@@ -59,6 +59,7 @@ contract PermissionlessNodeRegistry is
//mapping of operator address with nodeELReward vault address
mapping(uint256 => address) public override nodeELRewardVaultByOperatorId;
mapping(uint256 => address) public proposedRewardAddressByOperatorId;
uint256 public maxKeyPerOperator;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maxKeysPerOperator

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

* @notice update the max validator per operator value
* @dev only `MANAGER` role can update
*/
function updateMaxKeyPerOperator(uint256 _maxKeyPerOperator) external {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please get this reviewed by @batphonghan as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants